package com.wxapp.common.constant.base;

import com.baomidou.mybatisplus.core.metadata.OrderItem;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * @author lgl
 * @Description 分页公共方法
 * @Datetime 2022/5/30 11:51
 * @Modified By
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class IBaseRequestPage extends IBaseRequest implements Serializable {

    private Long page;

    private Long size;

    private List<OrderItem> order;

    public Long getPage() {
        return page == null ? 1L : page;
    }
    public long getSize() {
        return size == null ? 10L : size;
    }
}
